import org.junit.Test;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * 生成密码
 **/
//@RunWith(SpringRunner.class)
public class BCryptPassword {

    @Test
    public void genPassword(){
        BCryptPasswordEncoder encode = new BCryptPasswordEncoder();
        System.out.println( encode.encode("123456"));
    }
}
